package com.sysu.ooad.dao;

import java.util.List;

import com.sysu.ooad.entity.Course;
import com.sysu.ooad.entity.Student;
import com.sysu.ooad.entity.Task;

public interface TaskDao{
	public void add(Task task);
	public void update(Task task);
	public List<Task> findByCourse(Course c);
	public List<Task> findNotCloseTasksByCourse(Course c);
	public Task findByPositionOrderByPublishTime(int pos, Course c);
	public Task findById(Integer id);
	public int countByCourse(Course c);
}
